// components/navbar/index.js
const App = getApp();

Component({
  methods: {
    back() {
      wx.navigateBack({
        delta:1
      })   
    },
  },
  options: {
    addGlobalClass: true,
  },
  
  externalClasses: ['custom-class'],
  /**
   * 组件的属性列表
   */
  properties: {
    pageName:String,
    pageNums:String,
    showNav: {
      type: Boolean,
      value: true
    },
    bgColor:{
      type: String,
      value: '#00706B'
    },
    iconColor:{
      type: String,
      value: '#000'
    }
  },
  lifetimes: {
    attached: function () {
      this.setData({
        navHeight: App.globalData.navHeight,
        navTop: App.globalData.navTop
      })
     }
  }
})
